package com.cp.helper.dao.impl;

import com.cp.helper.bean.User;
import com.cp.helper.dao.BaseDaoSupport;
import org.springframework.stereotype.Repository;

/**
 * @描述:自动生成的User
 * @Author : chenpeng
 * @Date : 2015-10-22 20:58:13
 */
@Repository
public class UserDao extends BaseDaoSupport<User> {
    public UserDao() {
        super.setClassName("User");
    }

    //根据主键更新特定值
    public Integer updateNickNameById(User user) {
        return this.getSqlMapClientTemplate().update("User.updateNickNameById", user);
    }

    public Integer updateLoginNameById(User user) {
        return this.getSqlMapClientTemplate().update("User.updateLoginNameById", user);
    }

    public Integer updateLoginPwdById(User user) {
        return this.getSqlMapClientTemplate().update("User.updateLoginPwdById", user);
    }

    public Integer updateTelById(User user) {
        return this.getSqlMapClientTemplate().update("User.updateTelById", user);
    }

    public Integer updateMailById(User user) {
        return this.getSqlMapClientTemplate().update("User.updateMailById", user);
    }


}
